# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=libuninameslist
pkgver=20210626
pkgrel=0
pkgdesc="A Library of Unicode names and annotation data"
url="https://github.com/fontforge/libuninameslist"
arch="all"
license="BSD-3-Clause"
makedepends="autoconf automake libtool"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://github.com/fontforge/libuninameslist/releases/download/$pkgver/libuninameslist-dist-$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

static() {
	depends=""
	pkgdesc="$pkgdesc (static library)"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib
}
sha512sums="
aa28179b837609ccea4c15c1870fc8210c11fbb6e73d8a6e0843e8faa957fe6efd1824ec5818a2f46be427ba3a98f6a04f59102f6e1d01d38098f488c940d766  libuninameslist-dist-20210626.tar.gz
"
